fixed stop script and removed pid file