Fixed 'mark' bug. Also added more info on set/getsocketopt error