Fix a bug for a user is connected with more than one socket on the same frontend.
On disconnect the module originally remove the record from persistence for this user@frontend.
Add a test to check if at least another session remain for this user@frontend before record deletion.