added the isCloseable method to the InterPrologPrologEngine class