send shutdown_request on exit of `ipython console`

closes #4516
only shutdown kernel when it is owned by the console
Merge pull request #4517 from minrk/shutdown-console

send shutdown_request on exit of `ipython console`