try - catch

keeps the terminal open with exception error in stead of closing