save process logs if sanity job has failures

Change-Id: I6da7b4494ce4234322805028fe88db57af32b0a6
Can you please create a method that does all this and call it from run_sanity. Thanks