added file for working with exit
added needed imports
explain defer