fixes a loadtime failure issue
This rectifies an issue where at load time an algorithm could throw a load time exception, and then terminate without reading from stdin - this would lead to a hanging state as langserver would be unable to terminate the connection.