[AESH-293]
remove usage of InputStream.available() and use .read() instead, reader thread is now set to deamon.