(OSX) Get rid of 'isTerminating' variable