Fixed exception causes all over the codebase, i.e. use `raise new_exception from old_exception` when wrapping an exception.