Add try / catch

So that malformed assertions don't kill the process.