Fixed the name of pidFileLocation as pointed out by Jacob Kiers. (Thanks Jacob.)
Replaced a missing } that somehow got deleted. (I blame the dog.)