send shutdown_request on exit of `ipython console`

closes #4516