Proper CloseWithError