Implement more orderly termination of BgpServer

Change-Id: I1898ad38da8886978d1e6503cc7d89269d47f579