1. adding session.close to other methods(todo)
need to add phonertc for tcp