Added .close() method to formFig