log exceptions in api, handle new scheduled maintenance api format