Avoid stdio in SIGINT handler