[PLAT-5342] Return from main under normal conditions to allow stop-thread to complete