Override closeEvent properly.
Remove debug message.
Using API v2 now works in the frozen executable.