Notifying that a comet has left only if the Oort is running.

OortA and OortB are mutually connected; when OortA is stopped, OortCometAB disconnects
and OortB is notified of this. Upon this notification, OortB disconnects OortCometBA and then
notifies the applications that OortA left.
OortA receives the notification that OortCometBA disconnected, but since OortA is stopping, it
should not notify applications that OortB left (because it just disconnected from a stopping Oort).
Always returning the session id after handshake.

This allows stopping Oorts to handle messages received just after being stopped without throwing exceptions.
Retrieving the HTTP status code before aborting.
Fixes COMETD-420 (Disallowed transports still getting 'destroy()'ed).
Using try/catch to access fields, especially when accessing XHR and WebSocket.