can: fix two bugs in HttpManager CloseAll logic