Move CtrlC to java-example