How to avoid BYOD disasters