Cleanup deadlock detector, give warning in chat if the server has frozen.

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