[units] Catch unhanlded exception if no user input

* Catch two unhandled exceptions in distance and temp if the user
specified no input.