Trying to understand how exception handling works in Node.