Disable access to networking when running code.
Add guards to prevent receiving phoenix related messages.