adding option to requeue on error with default false