move delay into error handling of task spawner