My FSUIPC5.ini looks like:
[Auto]
1=Lua mrudder
[LuaFiles]
1=mrudder
[Keys]
1=82,8,L1:R,0 -{R: Press=Lua mrudder }-
and here the FSUIPC5.log:
117500 === DLLStop called ...
117500 === Closing external processes we started ...
118500 === About to kill any Lua plug-ins still running ...
118640 Lua threads being terminated:
118640 0 = "C:\P3D\Modules\mrudder.lua"
118797 LUA: "C:\P3D\Modules\mrudder.lua": killed
118797 === Closing global Lua thread
119812 === About to kill my timers ...
120015 === Restoring window procs ...
120015 === Unloading libraries ...
120015 === stopping other threads ...
120015 === ... Button scanning ...
120109 === ... Axis scanning ...
Hope this helps!