fixed Stop() on linux