Automatically closing neotree

Hi, I like using neo-tree to be able to see more clearly how my filestructure works and to navigate through it if I forgot a file name. However it takes up quite a lot of space so whenever I open a file/ unfocus from neotree I’d like the window to close until I explicitly open it again with a keybind. Is there any way to do that? Thanks in advance!