break out of while true loop even when exception triggered