let the extended class of websocketoodssserver to decide how to handle session close