[bf] - explicitly casting error msg on socket error