accessor/mutators for error_code and running were added.

Signed-off-by: Emerson Max <emersonmx@gmail.com>