Close app when login frame is closed.