fixed java driver stall; fixed java messenger to clean up the driver after stopping; added useful illegal state exceptions to the java messenger impl