Prevent exit() in console from exiting Geany

TODO: see about setting sys.excepthook to trap unhandled exceptions
in actual plugin code and rather than dumping to debug messages (or
exiting, in the case of SystemExit exception), present a dialog showing
a user-friendly message with option to see the details/traceback.