Error handling in NHL