You can save and close source files individually, or all together in a single operation.
See also:
Closing one or more source files
Saving and closing selected files in a single operation.