close ssh ports on program exit