added return to newsocket
added destroy session method
added destroy method