Fixed so that exit works.