recoverConnectionWithSessionID and getSessionID added. reasonCode also added