Made it possible to exit without saving or reloading if the part has not been edited.