i just figured it out...

i had tried that method, but it was trying to close a different instance of the form, so i made a class, and it seems to be working. Yay!