Core: Make GeSiCa spy buffer read more robust. Note:

The error code 3 and 4 have a slightly different meaning now and there
are additional error codes 5, 6, 7, 8. See commit diff for details.