Error handling

Added error handling for all bulk update ruby scripts