Implement more orderly termination of BgpServer

Change-Id: I61ddc71d4de5517b83cc6a0c0dcb34a724353085