Pump: do not write errorbuffer when it is full

It would result in an unhandled exception which we cannot write to the
error buffer as it is full.