Bugfix of adding multiple commands + disconnect