Added exec error logging