test: close socket connection once test done