Added checkHostState method

Do not execute docker commands if host is stopped or throwing an error

Signed-off-by: Ruslan Gabitov <ruslan.gabitov@live.com>