pid file disappearing in between checking its existence and reading it