warn users before closing relay.js
fixes #101