This should be called only if `@pid_file` exists, otherwise it could raise an error.