Fixes COMETD-459 (Subscribe call that results into failure (rejected by app) is never released).

Now the listener added before the subscription is removed in case the subscription failed.