protected function unlock() { if (!flock($this->fileHandle, LOCK_UN)) { throw new LockReleaseException("Failed to unlock the file."); } }