Fixing minimize handling so it will actually minimize while crash message is shown