onClose hook is triggered upon is CloseConnection command (server side) now. Allowing applications to handle any final executions before the connection is closed. Updated some API documentation.