* @throws IOException
* Communication Error.
*/
public void closeConnection() throws IOException {
Message message = new Message(new CloseCommandGenerator());
message.writeToStream(this.outputStream);
while(true) {
message = Message.readFromStream(this.inputStream);
for(Command command : message.getCommands()) {