Fixed email logging, starting websockets