Implement more orderly termination of BgpServer

Change-Id: I33e64ef82b62b8e2c352e782df292207af086322