Had to remove this assertion as attempt to destroy window when it's closed seem to have issues.