Log possible exception for Jenkins