Send close command on quit