Handles the base to the connection to a Imap based host  , encapsulated in a context manager environment.