Ensure errors are caught