Properly shut down Portals collective component