wrapper to fix minissl read non SSL stream on java

Added an engine wrapper in jruby to make sure ssl will die peacefully with ruby exception, so that the thread will be properly recycled