Use daemon threads instead of signals.