All macros will be dumped at a random interval between 40 and 60 minutes after you begin using a macro except if all of the macros running consist of ONLY the permitted commands, which are enabled to allow entertainers and doctors to remain connected.
If you start a macro at any time that contains commands that are not on the permitted commands list, the 40-60 minute timer will start and will trigger a dump of your macros, regardless of if you dump them before then. You will receive a system message warning you approximately 60 seconds before your macros are dumped and again when they are dumped. After your macros are dumped, you will be disconnected within 15 minutes if you are not actively playing the game.
You can press Ctrl + Shift + G
to see your activity state and the timer of when your macros will be dumped. If a timer is not active, secounds until Macro Dump will say "None."
If a macro is in your toolbar, you can now hover over the macro to see whether or not the system evaluates this macro as one that will trigger the macro dump timer. Below the macro name, it will display "Will Trigger Macro Timer:" with a yes or no answer.