RUBY-13540 - reflect error messages that occur in Before / After hooks

This should fix http://youtrack.jetbrains.com/issue/RUBY-13540. I am not sure if I am missing anything about how TeamCity or RubyMine will account for the `log(@message_factory.create_msg_error(msg, backtrace))` but this seems to fix my issue. The output now reflects error messages when they happen in hooks.