IMAPPush: Added some extra error handling for the IDLE connection terminating.

Signed-off-by: Martin Stone <martin@d7415.co.uk>