Throw error when can’t disconnect.
Object parameters should be type hinted.
Unused use statement should be avoided.