Added 'die' param to clog to stop script execution