share printing functionality and use it in resetFailedRequest