Fixed error during exception handling when using different implementation of IResponse