exit method

dynamic exit()

Implementation

exit() {
  isClose = true;
}