Working on exit handling.