Cleaning up network engine on logout