Application thread in closure