stopped client from freezing after clicking pause or stop