Prevent @Bean method from being called during @PreDestroy