Restore if window was maximized on close

closes #58
9 jobs for Store_Maximized_State in 77 minutes and 8 seconds