Fixed an issue with the session being dropped and updated to include scp functionality. scp still needs testing as it won't currently download multiple files at once.