log anonymous functions in shell(), need a kill() function