Close the window when we're done

Signed-off-by: Simon Busch <morphis@gravedo.de>