Added call to shutdown after exit from GDBBE main loop.