Fix leaked file manager