//This is the destructor macro which executes once, on the application close event