Separating the mandril and mailgun handler for error control