I tried edit file from remote host program.py, have this situation. The connection is lost, code on the file is lost and the file is blank now (program.py) every line of code is