Update APISession.java

add catch block for possible IOException thrown by the com.mks.api.CmdRunner.release() method.
to fix possible excecution deadlock.