* You used wrong argument order for `setTimeout`.
* You do not need the `return true` inside of `checkState`
* `this.onClose` won't work inside of `checkState`. You can use `SimLock.onClose` instead.