Repl to not use global context, fixes domain issue

See issue: #350