ssa.c: Clean events and revents for closing upstream connection.

 In response to IBV_EVENT_CLIENT_REREGISTER event, upstream
 close the upstream connection, but dosen't clean event and
 revent. After SM handover it could crash an application.