properly dispose binding if it exists