Added handling situation when trace fails to run