Added the ability to close windows.

Signed-off-by: Michael Mendelson <asoggytoaster@gmail.com>