Adding logs to determine reason for termination.