Cleans up bad pid files