Resource has to be serializable
Byteman rule to kill JVM after prepare