Shut down listener when test finished
Send back errors for SendQuery
Test failure condition