try {
socket.connect(address);
inputHandler = new InputHandler(this);
outputHandler = new OutputHandler(this);
inputHandler.start();
getEventBus().dispatchEvent(new ConnectEvent(powerSocket));
} catch (IOException e) {
getEventBus().dispatchEvent(new ErrorEvent(1, e, powerSocket));
}
}