Removed exit() calls in extract so that it can be used within plugins from the manager

I made a plugin to run gitify extract whenever a form is saved within the manager (so gitify would always be in sync). However, with the exit() calls, code execution is stopped and the manager can't complete saving elements. This moves the exits out into the main Gitify file, which should be safe.