[main] Safer handling of corrupt PID files

If the PID file contains something we can't parse as int, assume willie
is not running.

This should fix issue #659