Bugfix: Don't crash in worker threads when server is stopped and server object deleted

Fixed periodic crash of fastcgi server on shutdown.