You are except exception from pol.cleanup(), right? Could you use a specific exception type here rather than catch all Exception?