Added EXIT function
Cleanup