Fixed my stupidity. Close connection after last remote command not before..

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>