remove pid file works now even for SIGINT/SIGTERM