Check for closed connection first

Move sending to ```responses``` in default so ```quit``` channel always gets checked.