Remove unnecessary on_exits