exit works