Catch circular require() calls and throw an Error instead of deadlocking