[Reviewer: Andy] Handle pid file being absent, and tidy it up after stopping

This fixes issue #1.  Please can you review?