Exception catching and placeholder dumping function.