Add exit logic for pass editor view controller