Error Handling for Option Parser

Added Error Handling on the option parser for POP and IMAP submissions