close out the previous ssh session
remove previous artifacts on start
refactor on artifact logic