If  java process dies or killed, pid file is removed.
So stop_jboss6() exit with OCF_ERR_GENERIC ?

It causes fencing or unmanaged.