Add explicit disconnect

We need to make sure we disconnect from databases explicitly before dropping them.