Is there switch to turn off Dialog box for the close command

Is there a Command to turn off the message display box for the Close command so the information comes from the command line and not the pop up box?

Thanks Larry