File > Close does not close the file

The keyboard command cmd+W should only close the current tab. This is the same as it always was and as it is in Safari.

If you need to close the window without closing all tabs first, use the close button on the window.