minor fix to terminal client blocking