Handling auto start when starting hidden.