clean up exceptions