Did you really mean for this to be conditioned on DEBUG ?  Don't we also need the delay when running the non-debug server ?