Catch AWS error during assignment.