Error handling only in release and after publish