Implement more orderly termination of BgpServer

Change-Id: I3ad1e01e98d4e133a5fc4f20d8c252cbb94a3018