Fixed extra pid file remove