use destroy to close connection