Implement more orderly termination of BgpServer

Change-Id: Ia8341155b7afe943b8c79d06e1530ead143336f2