Added stop and exit for stopping further processing and exiting the current closure.