proper client disconnect only on valid commands