Added expetion catching in commander interface