add on_exit hook

Allowes specifying a function in the config that is executet on exiting gunicorn to do some cleanup.
Im not sure if the argument of this function is realy needed so please take a look at that.

Changes for #730