allow for rake task to shutdown gracefully