add better error handling of bad container IDs