Implement more orderly termination of BgpServer

Change-Id: I713b51126be03dfe2d1211c1aed9b1383ca75b39