Wrapped instanceId in try/catch
Handling NotFoundException for state (for example)