Make sure errors can be caught