Added a handler to return the smallest remaining shutdown time