StateMachine isn't used anymore
Unifying graphics APIs
Catch state promise rejections