execute: only print exit code if its not 0