Closing happens automatically depending on your configuration. Only files that are not opened as documents will be closed.