Add 3.2 compatibility

Add 3.2 compatibility on get_all_categories function
Fix BT0000073 remove connection

Only remove existing connections, ignore deleted connections.