5.4.2.22 End Statement

end-statement = "End"

Runtime Semantics.

§ An <end-statement> terminates execution immediately.

§ Never required by itself but MAY be placed anywhere in a procedure to end code execution, close files opened with the Open statement, and to clear variables.