make exit work