Fix for error not clearing promise tracker