fix for error events doubling (reconnect off)

Fix for:
when reconnection is off, lib user receives error event from connection object twice.