webserver task quiting early