Gather error messages for failed command

Currently if command is failed their messages are lost