Quiet time check wasn't always returning a value.
Catching exceptions when joining the threads.
Always checking whether quit was requested, regardless of quiet-time.
Removed the thread for calling socket_buffer_handler.