Bugfix: Application crashes while closing page