The program can now terminate :P
Support registering nxm handler on linux