Notify gdb on exit with code or from signal