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