Fixed exceptions at server exit
v0.5.3.1