Throw exception instead of loging