Update swapmanager.py

fix for disconnect