Wrap timerange in a try clause in case something bad happens