Ivan/exit

Add for exit function closeAllWindows()