Fix #46 - cgdb freezes on exit