Change closePressed signal to not pass boolean.
Add closePressed callback to Application.
Add window closing to test application.