More work on handler threads and services.