move core dump code to right place
defer signal setup until after forking
join worker threads as well