move system_flush_routes() call to mark_interface_down()