Check if inputstream is ready before read line
Surround with try catch in JS
Implements Serializable
Configure ScriptExecutorService RMI
update