The final act after the LUW is usually the release of the locks. You can launch the FM, and create a loop, checking for the lock every few seconds. When you're able to get the lock, then you can release it again, and run your main functionality.
You can also register for the event