cleaned up command execution exception handling