Fix: pause and resume active terminal on every ajax request.