setting the imap state back to selected when IDLE finishes