close serversocket when the loop ends. remove setupclass and teardownclass method in perf test