Fix: SocketException from CakeEmail causing SecurityError

Closes #375