Remove at_exit call which is breaking exit statuses