fixed  exception handling issues when listing instances