Do less sketchy stuff in promise callbacks.