check return value of post-hook script