Fixed error_handler trace generation on higher debug levels