Fixed nx.exception handling bug