Fixed *crashs after a timeout. -> connection semaphor hasen't been released*
Added *Connected check bevore executing command with cmd.execute*