OPTIMIZATION: close all session factories when bean is destroyed to prevent connection leak when stopping the webapp