Casting shutdown delay from config and cancelling shutdown timer usign
exception handling