Implemented functionality for retrying subscribing/unsubscribing from event.
Introduced some private methdos to extract common logic for connecting to a channel