Check if saving file succeded on program exit.