handling exit like close