Add proper delete-event handler to ModestShell