Making block caching script die if there is a problem