#16: added close connections.
Merge pull request #19 from nikolaifedorov/16-use-EJB-connection

#16: added close connections.