add before/after hook of socket.io server start/stop