Assuming that the mind is simply the software and the brain is the hardware it runs upon, there might be a day when your neurons, and synaptic connections, are transferred to a machine and their counterparts. It will be a future of mind uploading, whole-brain emulation, and the full understanding of the connectome.
In a paper published in Plos One in early December, scientists detailed how they were able to elicit a pattern similar to the living condition of the brain when exposing dead brain tissue to chemical and electrical probes.
Citation: Rouleau N, Murugan NJ, Tessaro LWE, Costa JN, Persinger MA (2016) When Is the Brain Dead? Living-Like Electrophysiological Responses and Photon Emissions from Applications of Neurotransmitters in Fixed Post-Mortem Human Brains. PLoS ONE 11(12): e0167231. doi:10.1371/ journal.pone.0167231