Support of the exit method was added.