* Releasing resources of context manager functions if exceptions occur
* Fix flag name for l3 agent external network id