So as couple things 

1. Like before use a real error
2. Promise is defined so we can use that not exports.Promise 
3. There is an built in short cut for this Promise.reject 

So all together 

```
return Promise.reject(new Error('database is closed'));
```