trap_exit on workers to make sure terminate is always called.

Avoids leaking connection if a worker is brutally killed.