catch logic exit() calls