Only save logs after crash

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>