Modification of viewport plugin closing, added ask for saving before moving from the plugin.