removing debug print. removing pid file after script run