Throw exception on Maximum call stack size exceeded