Clean up exceptions.