code refactoring
HUB-88 : Replece array index delete by splice
HUB-88 : Test if socket is open before calling function close
HUB-88 : Avoid duplicate outboundadapters
HUB-88 : in session, checkFilter become validateFilter
Merge pull request #4 from boiving/master

Bug Fix