Avoids throwing when calling db.close() without a callback and using pool in mysql (fixes #180)