I am writing a python code to implement some logic and record it in excel sheet. xlsxwriter works fine when program terminates properly but if it is terminated through some logical error in the code or through any exceptions or interrupts the excel workbook is not created.I am writing a python code to implement some lo