closed all the handles to force sftp closing

removed yet another useless print.
Added close for each layer, else one stays open and blocks the others.