make sure to always call request callbacks
on connection error, set count of pending requests to 0
do not call retry() on end of connection, connection re-establishment is already taken care of