server: close targetConn properly