Add required method for closing the program