setting controller instance to null after destroyed