Add try/catch around receive