closeExceptionally

Closes a session with normal or error close reason, depending on whether cause is cancellation or not.