Have you tried to change the visibility of the window by using the same instance of Handsontable?
visibility