Added onDisconnect event to core.socket