Fix bug when without connection

When without internet connection the program should abort and
keep the status file.