implemented full shutdown by closing http server and bayeux