Add code to propagate exceptions.