shutdown gracefully on console interrupt event