move this to init so we catch problems like not being able to attach signals outside main thread early