Updated provider to properly handle some exit codes.