Make error handling more flexible when importing users