If grace-time is not set, use -1, if set and invalid print an error. Update unit tests to test this case.