support the exit(3) function