ensure controller is cleared so cached controllers aren't used when
there is an error (happens in test at the very least)