execute

fun <T> execute(task: () -> T): T?

Executes the task. Catches any exception, if thrown, and prints the stacktrace.