Fail gracefully on lag_time <= 0

Fixes #332.