Implemented reconnection logic & simplified events class structure