Closes the connection.
@override Future<void> close() async { if (connection is PostgreSQLConnection) { await (connection as PostgreSQLConnection?)?.close(); } else { await Future.value(); } }