check Exception class in method _handleException

Add checking the exception that belongs to ServiceResponseException.
For example, exception is instance of ValidateException(illegal access to SQS returned message),
it has no method "getExceptionCode()".
In this case, "$e->getExceptionCode()" causes PHP Fatal Error.