Ensure errors are handled