properly clean up backend object