Implement more orderly termination of BgpServer

Change-Id: Ic1e6400df71dfb65fca85a583232dfdb7d873895