Error handler cleanup