Add error trap, including special handling of mysqldump errors.