Make sandbox not a global object, increase the director retry time