Reset L3Socket, improved the non-root execution of nettests and fixed some error handling