handling non blocking mode error in SimpleConnection