Added exception handling for execCommand