remove debugger from leave controller