Add onClientSessionClosed callback and set server session timeout.