[BUGFIX] Check for form changes on exit