add exit to exit