Save opened tabs in form closing event