added option to exit