ast_carefull_fwrite:Broken pipe error

Hii,

we are integrate asterisk with sugar crm,once click on 7000 extension from sugur crm user profile,fallowing error message was displayed on asterisk cli command:
“ERROR[7989]: utils.c:1440 ast_careful_fwrite: fwrite() returned error: Broken pipe”…
asterisk version:11.15

This is normally due to sloppy programming in external scripts, which terminate before reading the final response.