Added a check to Dispose(false) to see if we own a valid handle before release.