Support "docker restart"

Delete the pidfile if docker was not shut down properly.
Merge pull request #12 from miracle2k/patch-1

Support "docker restart"