have chirp_write disconnect and close if it can't allocate buffer memory #3590