Added close command for consoles.