Added check for when project is deleted/closed

Close the editor and do nothing else when the project is deleted or
closed. The editor will, by default, not save anything.

Signed-off-by: Neil Guzman <nguzman@redhat.com>