don't try to close unopened pid file (in non daemon mode)