no need to write out errors over socket since we can inherit out. context.global = context

 fix typo in string replace of __dirname