Changed sublime setting save_on_focus_lost to true