Proper exception handling in console client

Fixes #13