Update to Winston error  handling