adding destroy method config in Bean