when a handle returns an error, get a new handle