Fixing issue #291 (WIP)

This is unnecessary, since you check `options.windowCloseWarning` below.