result was null when trying to close?