Set the ImapCommandException's InnerException if available