fixing log path and wrapping the failures