Fixed service socket listener bugs