Fixed error on client disconnect