Added close command to CLI