make execute_after... function throw an error and put try-catch blocks around all it's calls