1003961 - better error detection

Update the errors detection to new puppet errors format. Also make
sure the services are running at the end.
Merge pull request #60 from iNecas/bz/1003961

1003961 - better error detection