Add logs to oozie util, handle npe