Fixed invalid read on PHPWorker shutdown