My hope is that the brain is basically just a "consciousness" receiver and does not create it. Brain damage results in bad reception, people with schizophrenia receive signals not intended for them, people with alien hand syndrome have their brain split into several receivers and so on.
If that were the case, the body (including the brain) could die but the consciousness could continue to exist.