CSPACE-6335: Added logoutput => on_failure to exec resource. Style fixes.