Patched the monogame framework problem when closing the window