Fix scope issue
  If posting to team room failed the error was not properly logged