Handle more exceptions

A replacement for #154, using its tests but letting the exception bubble instead of converting it to true/false. PTAL @tyoshino