A JavaScript error occurred in the main process

When I try to close the Beyond Labz app on Mac, it gives me error. I had installed a free trial version and then activated it the next day with a purchsed license.

Uncaught Exception:
TypeError: Cannot read property ‘minimize’ of null
at BrowserWindow.handleClose (/Applications/Beyond Labz.app/Contents/Resources/app.asar/index.js:1085:45)
at BrowserWindow.emit (events.js:203:13)

@shrivaa
Yes, that error will occur whenever you close the program with the X, instead of the Exit arrow. Just use the arrow and the program will close fully with no problems!