Test exception was still in function. Adding client closure on server close.