Got expected exception: java.lang.IllegalArgumentException: call on closed handle finished test