Close Ssh connections when not in use