disconnect bugfix

fixing one of the broken states when module disconnected in the middle
of the configuration and disconnect button was pressed by user
afterwards

Note: we might want to disconnect automatically when this happens