Returns the result of the given closure, or null if an Exception was raised. The Exception will be logged.