finishing error_handler dec