WIP: Refactor certificate agent and queue

Details to follow...
Perhaps it's confused because you're catching it before the re-raise? Static analysis tools get tripped up by lots of things.

Why catch and log, rather than letting it bubble up and get logged from the surrounding context?  Just the feels?