added 'exit' exit functionality