tests/unix_sockets: Kill the connection properly in test model