Added commands to close a file without affecting window layout.