erl side handle crash of the java side