Add exception handling in the console itself, to output some sort of error message when an invocation throws an exception.