[WIP] Extend exception/cert handling

related to #28 
I can ask them on IRC directly if you want. But the most important here is to prevent the server from crashing fir this reason.