Changed Dispose for Close.