handle exit status from plugins