Executes the given block of code and returns a Success capturing the result, or a Failure if a Throwable is thrown.