Fixes problem where errors didn't bubble up