close connection after several bad commands