Add loop to keep main thread from dying so that signals can be caught.