Added build and cache folders to gitignore
Hide window instead of closing it.