Actually fixed /tps. Prevent deadlock detector killing server if in the process of stopping.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>