EXIT ([exit-status]) Class: Subroutine Terminates the program, closes all files, and returns control to the operating system. The optional argument specifies the exit-status value of the program.