Pidfile featuring stale detection and file-locking
