Don't wait for daemon threads at shutdown. Fixes #758.