Generally exit() should not be used on Posix, because it exits the whole program instead of only the task.