pass exception to logger

Currently command exceptions are not logging a stacktrace, which makes debugging console commands a pain.