added the isCloseable method to the JplPrologEngine class