it gives no error, it just closes the window right away…