Error argument in callback should be instance of Error