Fix bug where exceptions are not cleared from previous branch