set handlers to None after removing them