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