Code and files lost when switching to GPU

I just lost some code in a jupyter notebook and a file I created when I switched to a GPU server. First time this happened and it is of course very annoying. I hope you guys can prevent buggy stuff like that in the future.