continue with batch processing

modified handling errors to make sure the status are correct