don't block forever when writing to remote servers