Utils: better handling for exit status, detect crash properly

Signed-off-by: Eduardo Silva <edsiper@gmail.com>