handle pid file