Close ssh connections
Steps to reproduce:
- Start middleware instance
- Wait
What should happen:
- ssh connections are established, used and closed
What happens instead:
- ssh connections persist indefinitely, and new connections are added, consuming resources
Fix:
- Close ssh connections when they are no longer needed