App finishes itself after opening the Door successfully