Ivan/exit 4

Created function exit close all windows