Handler error during script execution