Warn the user when closing/reloading page if the report is being saved

fixes #127