Create activityHandler.logger on main thread to avoid race condition