Added defensive code when interacting with objects and firewall modules