improvements on application shutdown (seems that only @PreDestroy works only with AppScoped beans)